/**
 * User: Anton Petrov
 * Date: 3/10/13
 * Time: 8:36 PM
 */
package com.antonpetrov.util
{
	import org.flexunit.assertThat;

	public class TestUtilTest
	{
		[Test]
		public function testAssertEqualArrays():void
		{
			assertThat(TestUtil.assertEqualArrays([], null) == false);
			assertThat(TestUtil.assertEqualArrays(null, []) == false);
			assertThat(TestUtil.assertEqualArrays(["a"], []) == false);
			assertThat(TestUtil.assertEqualArrays(["a"], ["b"]) == false);
			assertThat(TestUtil.assertEqualArrays([], ["a"]) == false);
			assertThat(TestUtil.assertEqualArrays(
				["some", "things", "matter"],
				["some", "things", "don't"])
				== false);

			assertThat(TestUtil.assertEqualArrays(null, null) == true);
			assertThat(TestUtil.assertEqualArrays([], []) == true);
			assertThat(TestUtil.assertEqualArrays(["a"], ["a"]) == true);
			assertThat(TestUtil.assertEqualArrays(
				["some", "things", "matter"],
				["some", "things", "matter"])
				== true);
		}
	}
}
